//
//  CTMainViewController.m
//  WelcomeTest
//
//  Created by dujiepeng on 14-7-19.
//  Copyright (c) 2014年 dujiepeng. All rights reserved.
//

#import "CTMainViewController.h"
#import "CTWelcomeView.h"

@interface CTMainViewController ()

@end

@implementation CTMainViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    NSMutableArray *images = [NSMutableArray array];
    for (int i = 1; i <= 3; i++) {
        NSString * imageName = [NSString stringWithFormat:@"instruct0%d",i];
        [images addObject:[UIImage imageNamed:imageName]];
    }
    
    NSLog(@"dev----");
    CTWelcomeView *welcomeView = [[CTWelcomeView alloc]
                                  initWithFrame:self.view.frame
                                  images:images];
    [self.view addSubview:welcomeView];
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
 {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
